{{extend 'layout.html'}}

<h1>Data</h1>
{{=form}}
<br/><br/>
{{if 'tables' in request.args:}}
    {{=A('<< Index', _href=URL(r=request, c='default', f='index'))}}
{{else:}}
    {{=A('<< data', _href=URL(r=request))}}
{{pass}}
{{if 'read' in request.args:}}
    {{args=request.args}}
    {{args[0]='update'}}
    {{=A('| update', _href=URL(r=request, args=args))}}
{{pass}}
{{if 'select' in request.args:}}
    {{args=request.args}}
    {{args[0]='create'}}
    {{=A('| Create', _href=URL(r=request, args=args))}}
{{pass}}
